From ac572bf3be08685a1dc7a05c6cf93537a6674fc6 Mon Sep 17 00:00:00 2001 From: Hans van Kranenburg Date: Fri, 23 Feb 2018 21:11:19 +0100 Subject: [PATCH] debian/bin/genorig.py: hard link orig tar When building with pbuilder, I end up with a dangling symlink in my result directory. Why not just hard link it... --- debian/bin/genorig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/bin/genorig.py b/debian/bin/genorig.py index c0f2846f1c..6800421877 100755 --- a/debian/bin/genorig.py +++ b/debian/bin/genorig.py @@ -81,7 +81,7 @@ class Main(object): except Exception: pass try: - os.symlink(os.path.join('orig', self.orig_tar), os.path.join('..', self.orig_tar)) + os.link(os.path.join('..', 'orig', self.orig_tar), os.path.join('..', self.orig_tar)) except OSError: pass -- 2.30.2